package de.szut.gui.options;

import javax.swing.JComboBox;

public class OptionsComboBox extends JComboBox<String> implements OptionsComponent {

	private static final long serialVersionUID = -1829090110614199920L;
	private String key;
	
	@Override
	public String getOptionComponentState() {
		return (String) getSelectedItem();
	}

	@Override
	public void setOptionComponentState(String newState) {
		setSelectedItem(newState);
	}

	@Override
	public String getOptionKey() {
		return key;
	}

	@Override
	public void setOptionKey(String key) {
		this.key = key;
	}
	
	public OptionsComboBox(String[] values) {
		super(values);
	}

}
